package com.lancoo.znbkxx.teacher.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.lancoo.znbkxx.teacher.R
import com.lancoo.znbkxx.teacher.model.data.AnswerSkillData
import com.lancoo.znbkxx.teacher.model.data.AnsweringSkill
import com.lancoo.znbkxx.teacher.utils.HtmlUtils
import kotlinx.android.synthetic.main.item_skilldetail_comment.view.*


/**
 * @author : Admin
 * @date   : 2020/10/29
 * @desc   :
 */
class SkillDetailAdapter(data: ArrayList<AnsweringSkill>) :
        BaseQuickAdapter<AnsweringSkill, BaseViewHolder>(data) {
    init {
        mLayoutResId = R.layout.item_skilldetail_comment
    }

    override fun convert(helper: BaseViewHolder, item: AnsweringSkill?) {
        with(helper.itemView) {
            tv_content.text = HtmlUtils.setText(item!!.AnswerSkillDataList[0].MainContext)
        }
    }
}